package jp.ac.hosei.gaedemo.controller;

import jp.ac.hosei.gaedemo.service.SchedulerService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class ListController extends Controller {

    private SchedulerService service = new SchedulerService();

    @Override
    public Navigation run() throws Exception {
        // 初期表示時に全検出力する場合は以下のコメントを外す
        requestScope("scheduleList", service.getAll());
        return forward("list.jsp");
    }
}
